package com.tong.hao.ac.api.model.test;

import cn.buddha.jec.constants.TongConstant;
import cn.buddha.jec.model.TongBaseResponse;
import cn.buddha.jec.util.TongDateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

/**
 * @ClassName DemoRes
 * @Description 测试响应模型
 * @Author 友野浩二
 * @Version 1.0
 **/
@Setter
@Getter
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class DemoRes extends TongBaseResponse {

    private static final long serialVersionUID = -57710071577989437L;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "住址")
    private String address;

    @ApiModelProperty(value = "破壳日")
    private Date birthday;

    @ApiModelProperty(value = "结婚纪念日")
    @JsonFormat(timezone = TongConstant.TIME_ZONE_GMT8, pattern = TongDateUtils.PATTERN_ISO_DATE)
    private Date weddingDay;

}
